import request from '@/utils/request'

// 查询第三方商品列表
export function listThird(query) {
  return request({
    url: '/third/products/list',
    method: 'get',
    params: query
  })
}

// 查询第三方商品详细
export function getThird(id) {
  return request({
    url: '/third/products/' + id,
    method: 'get'
  })
}

// 新增第三方商品
export function addThird(data) {
  return request({
    url: '/third/products',
    method: 'post',
    data: data
  })
}

// 修改第三方商品
export function updateThird(data) {
  return request({
    url: '/third/products',
    method: 'put',
    data: data
  })
}

// 删除第三方商品
export function delThird(id) {
  return request({
    url: '/third/products/' + id,
    method: 'delete'
  })
}
